#include "form.h"
#include "ui_form.h"

Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
    pix.load(":/new/prefix1/5.jpeg");
    ui->label->setPixmap(pix);
    ui->label->setScaledContents(true);
}

Form::~Form()
{
    delete ui;
}

void Form::on_pushButton_clicked()
{
    this->hide();
    Widget *w=new Widget();
    w->show();
}
